package com.iotechn.unimall.data.dto.purchase;

import com.iotechn.unimall.data.domain.FinancePayableDO;
import com.iotechn.unimall.data.domain.FinancePayableLogDO;
import com.iotechn.unimall.data.dto.SuperDTO;
import com.iotechn.unimall.data.dto.finance.FinancePayableLogDTO;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 采购单
 */
@Data
public class PurchaseOrderDTO extends SuperDTO {

    /**
     * 库id
     */

    private Long warehouseId;


    private String warehouseName;
    /**
     * 入库单编号
     */

    private String pOrderNo;
    /**
     * 类型0待入库1已入库
     */

    private Integer orderState;
    /**
     * 备注其他信息
     */

    private String pOrderInfo;
    /**
     *
     */

    private Long adminId;
    /**
     * 商品总价
     */

    private Float pOrderGoodsAmount;
    /**
     * 税价格
     */

    private Long pOrderTax;
    /**
     * 订单金额
     */

    private Float pOrderAmount;
    /**
     * 优惠金额
     */

    private Float pOrderConpon;

    /**
     * 供应商id
     */

    private Long supplierId;
    /**
     * 供应商联系人
     */

    private String supplierContacts;
    /**
     * 手机号码
     */

    private String supplierPhone;

    /**
     * 总额
     */
    private Float totalPrice;

    /**
     * 总件数
     */
    private Float total;

    /**
     * 入库商品
     */
    private List<PurchaseOrderGoodsDTO> purchaseOrderGoodsDTOS;



    /**
     * 供应商名称
     */

    private String supplierName;

    /**
     * 数量
     */

    private Float pOrderGoodsCount;



    /**
     * 审批意见
     */
    private String pOrderAuditComment;



    /**
     * 审批时间
     */
    private Date pOrderAuditTime;

    /**
     * 审批人Id
     */
    private Long pOrderAuditUserId;

    /**
     * 审批人真实姓名
     */
    private String pOrderAuditRealname;

    private String adminRealname;

    /**
     * 回款记录
     */
    private  List<FinancePayableDO>  financePayableList;

/**
 * 操作日志
 */
private  List<PurchaseOperLogDTO> purchaseOperLogDTOS;

    /**
     * 付款记录
     */
    private  List<FinancePayableLogDTO>  financePayableLogDTOs;
    /**
     * 付款日志
     */
    private  List<FinancePayableLogDO> financePayableLogDOList;
}
